package com.proxy;

/**
 * User: yuanjianpeng
 * Date: 2019/1/12
 * Project: webServiceServerTest
 * Version: 1.0
 * Description:
 */
public class UserDaoAndUserDtoCovert extends Converter<UserDto, UserDao> {
    public static final UserDaoAndUserDtoCovert INSANCE = new UserDaoAndUserDtoCovert();

    @Override
    public UserDao convertTtoE(UserDto src) {
        UserDao userDao = new UserDao();
        if(null != src){
            userDao.setUserName(src.getUserName());
            userDao.setPassWord((src.getPassWord()));
        }
        return userDao;
    }

    @Override
    public UserDto convertEtoT(UserDao src) {
        UserDto userDto = new UserDto();
        if(null != src){
            userDto.setUserName(src.getUserName());
            userDto.setPassWord((src.getPassWord()));
        }
        return userDto;
    }
}
